﻿using System.Security.Cryptography;
using SilenthinkCommon.Extension;

namespace SilenthinkCommon.Components
{
    public static class Utility
    {
        public static byte[] GenerateRandomNumber(int length)
        {
            var rng = new RNGCryptoServiceProvider();
            var bytes = new byte[length];
            rng.GetBytes(bytes);
            return bytes;
        }

    }
}